﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Script.Services;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;
using Newtonsoft.Json;

namespace MagazineWebForms
{
    public partial class JtableDemo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public static string GetAuthors()
        {
          var JsonObj=  BusinessMethodes.BusinessMethods.GetAuhtors();

          var  json = JsonConvert.SerializeObject(JsonObj);
           return json;
        }

        #region Jtable
       
        
        [WebMethod(EnableSession=true)]
     
       public static object UsersList(int jtStartIndex = 0, int jtPageSize = 0, string jtSorting = null)
        {

            return BusinessMethodes.BusinessMethods.UsersList(jtStartIndex, jtPageSize, jtSorting);
        }
        #endregion
    }
}